﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;
using System.Collections.Generic;
using System;

namespace EkStudio.com.bean.xml.BillReflect
{
    public class BillRefectDataNodeWhereList: BillObjectInterface
    {
        private List<BillRefectDataNodeWhereItem> item = null;

        [XmlElement]
        public List<BillRefectDataNodeWhereItem> Item
        {
            get { return item; }
            set { item = value; }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            BillRefectDataNodeWhereList clone = new BillRefectDataNodeWhereList();
            clone.Item = new List<BillRefectDataNodeWhereItem>();
            if (Item != null && Item.Count > 0)
            {
                foreach(BillRefectDataNodeWhereItem it in Item)
                {
                    BillRefectDataNodeWhereItem obj = it.Clone() as BillRefectDataNodeWhereItem;
                    if(obj != null)
                    {
                        clone.Item.Add(obj);
                    }
                }
            }

            return clone;
        }
    }
}
